﻿using Android.App;
using Android.Widget;
using Android.OS;
using Android.Support.V7.App;

namespace TestApp
{
    [Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
    public class MainActivity : AppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            Button btn = FindViewById<Button>(Resource.Id.btnSubmit);
            EditText et = FindViewById<EditText>(Resource.Id.etContent);
            TextView tv = FindViewById<TextView>(Resource.Id.tvContent);

            btn.Touch += delegate {
                tv.Text =$"您输入的内容是{et.Text}" ;
            };
        }
    }
}

